package cn.edu.sysu.mail;

import java.util.concurrent.Callable;

public class MailThread implements Callable<String> {

	MailUtil mailUtil = MailUtil.INSTANCE;

	String[] mailList;
	String subject;
	String content;

	public MailThread(String[] mailList, String subject, String content) {
		this.mailList = mailList;
		this.subject = subject;
		this.content = content;
	}

	@Override
	public String call() throws Exception {

		return this.mailUtil.sendMail(mailList, subject, content);

	}

}
